<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加套餐</title>
<LINK rel="stylesheet" type="text/css" href="../css/mq.css">
<script type="text/javascript">
	function checkPutIn(){
		if(document.getElementById("chargeName").value == ""){
			alert("请输入套餐名称");
			return false;
		}
		if(document.getElementById("price").value == ""){
			alert("请输入套餐价格");
			return false;
		}
		else{
			return true;
		}
	}
</script>
</head>

<body>
<div id="write">
<form action="insertCharge.do" method="post"  namespace="/admin">
 <h4>添加套餐</h4>
<table id="mailInfo" style="border-top:#dddddd solid 1px; border-bottom:#dddddd solid 1px" frame=below rules=rows  bordercolor="#FFFFFF" width="100%" border="1" cellspacing="0" cellpadding="4" >
  <tr>
    <td width="85px" class="tdstyle">套餐名称：</td>
    <td><input name="chargeName" id="chargeName" type="text" class="inputstyle-240px" /></td>
  </tr>
    <tr>
    <td class="tdstyle">套餐价格：</td>
    <td><input name="price" id="price" type="text" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td class="tdstyle">套餐描述：</td>
    <!--
    <td><input name="description" id="description" type="text" class="inputstyle-240px" /></td>
      -->
    <td><textarea name="description" id="description" class="textarea" style="overflow:auto"></textarea></td>
  </tr>
  <!--
  <tr>
    <td class="tdstyle" align="right">场景分类：</td>
    <td> <select name="sc">	
		<s:iterator value="scs">
			<option value='<s:property value="id"/>'>
			<s:property value="scName"/>
			</option>
		</s:iterator>	
	  </select>
	 </td>
  </tr> 
  -->
</table>
		
<div class="text_margin1">
	<input name="发送" type="submit" value=" 确 定 "  class="buttonstyle-2word" onclick = "return checkPutIn();"/>
  	<input name="重置" type="reset"  value=" 重 置 " class="buttonstyle-2word" />
</div>	 
</form>

</body>
</html>
